package com.abe.libbase.base;

import com.abe.libcore.base.screen.AbeFragment;

import butterknife.ButterKnife;
import butterknife.Unbinder;

public abstract class BaseFragment extends AbeFragment {
    private Unbinder unbinder;

    @Override
    protected void initContent() {
        unbinder = ButterKnife.bind(this, rootView);
        init();
    }

    /**
     * onDestroyView中进行解绑操作
     */
    @Override
    public void onDestroyView() {
        super.onDestroyView();
        unbinder.unbind();
    }

    public abstract void init();

    @Override
    public boolean isAutoZoom() {
        return false;
    }

}